#!/usr/bin/python
# -*- coding:utf-8 -*-
f=open(r'd:/creator/tb.txt','w')
f.truncate()
a = 11  #输入个数+1
b = 21  #隐含个数+1
c = 6   #输出个数+1

for i in range(1,a):
	f.write('x'+str(i)+'=1;'+'\n')
f.write('\n')
for i in range(1,a):
	for j in range(1,b):
		f.write('w'+'_'+str(i)+'_'+str(j)+'=1;'+'\n')
f.write('\n')
for i in range(1,b):
	f.write('th_h_'+str(i)+'=1;'+'\n')
f.write('\n')
for i in range(1,b):
	for j in range(1,c):
		f.write('v'+'_'+str(i)+'_'+str(j)+'=2;'+'\n')
f.write('\n')
for i in range(1,c):
	f.write('th_o_'+str(i)+'=2;'+'\n')
f.write('\n')
f.write('clk = ;\nen = ;\n')
f.write('\nalways\n#25 clk=~clk;')
f.close()


